
<%@page import="users.UserDB"%>
<%@ page import="java.io.*" %>
<jsp:useBean id="user" class="serverDB_classes.UserData" scope="session"/> 
<jsp:setProperty name="user" property="*"/> 
<HTML><BODY>

<% boolean isExist = false; 
	isExist =serverDB_classes.DBManager.getDBManager().verifyUser(user.getUserName(),user.getPassword()); 
   
   if (!isExist){
	    serverDB_classes.DBManager.getDBManager().newUser(
	    user.getUserName(),user.getPassword(),user.getFirstName(),user.getLastName());

	   pageContext.forward( "index.jsp" );
   }
	else{
		pageContext.include("authorizeAccount.jsp");
	}

%>


<%
/*files list: 

File f=new File("c:/DropBox");
String files[]=f.list();
for (String fi : files){
	out.println(fi+"<BR>");
}
pageContext.forward( "index.jsp" );*/
%>

</BODY></HTML>